import { Injectable } from '@angular/core';

export const ENDPOINTS = {
  baseURL: '/api',
}

export type EndpointKeys = keyof typeof ENDPOINTS;

@Injectable({ providedIn: 'root' })
export class SettingService {
  private readonly _endpoints = ENDPOINTS;

  constructor() {}

  public getEndpoint(key: EndpointKeys): string {
    return this._endpoints[key];
  }
}
